home *** CD-ROM | disk | FTP | other *** search
/ Freelog 116 / FreelogNo116-JuilletSeptembre2013.iso / Bureautique / TreeDBNotes Free / setup_treedbnotes_4_34_1.exe / $APPDATA / TreeDBNotes 4 / Syntax / C#.xml < prev    next >
Extensible Markup Language  |  2011-09-07  |  7KB  |  285 lines

  1. <?xml version='1.0' encoding='ISO-8859-1' ?>
  2. <XML>
  3.   
  4.   
  5.   
  6.   
  7.   
  8.   
  9.   
  10.   
  11.   <Engine>
  12.     
  13.     
  14.     
  15.     
  16.     
  17.     
  18.     
  19.     
  20.     <Author>SoftArtStudio</Author>
  21.     <URL>http://www.mytreedb.com</URL>
  22.     <Version>1.0</Version>
  23.   </Engine>
  24.   <General>
  25.     
  26.     
  27.     
  28.     
  29.     
  30.     
  31.     
  32.     
  33.     <Name>C#</Name>
  34.     <Version>1.00</Version>
  35.     <Files>CS</Files>
  36.     <Delimeters><![CDATA[ :;[]{}-+=()!@#$%^'",.<>?/|\]]></Delimeters>
  37.     <Case>No</Case>
  38.     <ColorBackground>$00EEF2F2</ColorBackground>
  39.     <ColorBorder>clSilver</ColorBorder>
  40.   </General>
  41.   <Author>
  42.     
  43.     
  44.     
  45.     
  46.     
  47.     
  48.     
  49.     
  50.     <Copyright>http://www.mytreedb.com</Copyright>
  51.     <Email/>
  52.     <Name>http://www.mytreedb.com</Name>
  53.     <URL>http://www.mytreedb.com</URL>
  54.     <Notes/>
  55.   </Author>
  56.   <Styles>
  57.     
  58.     
  59.     
  60.     
  61.     
  62.     
  63.     
  64.     
  65.     <font>
  66.       <Title>Normal text</Title>
  67.       <Name>Courier New</Name>
  68.       <ColorFont>clWindowText</ColorFont>
  69.       <ColorBack>clNone</ColorBack>
  70.       <Size>10</Size>
  71.       <Bold>No</Bold>
  72.       <Italic>No</Italic>
  73.       <Underline>No</Underline>
  74.       <Strikeout>No</Strikeout>
  75.     </font>
  76.     <font>
  77.       <Title>Keywords, terms</Title>
  78.       <Name>Courier New</Name>
  79.       <ColorFont>clBlue</ColorFont>
  80.       <ColorBack>clNone</ColorBack>
  81.       <Size>10</Size>
  82.       <Bold>Yes</Bold>
  83.       <Italic>No</Italic>
  84.       <Underline>No</Underline>
  85.       <Strikeout>No</Strikeout>
  86.     </font>
  87.     <font>
  88.       <Title>Directives</Title>
  89.       <Name>Courier New</Name>
  90.       <ColorFont>clPurple</ColorFont>
  91.       <ColorBack>clNone</ColorBack>
  92.       <Size>10</Size>
  93.       <Bold>No</Bold>
  94.       <Italic>No</Italic>
  95.       <Underline>No</Underline>
  96.       <Strikeout>No</Strikeout>
  97.     </font>
  98.     <font>
  99.       <Title>Types</Title>
  100.       <Name>Courier New</Name>
  101.       <ColorFont>clBlue</ColorFont>
  102.       <ColorBack>clNone</ColorBack>
  103.       <Size>10</Size>
  104.       <Bold>No</Bold>
  105.       <Italic>No</Italic>
  106.       <Underline>No</Underline>
  107.       <Strikeout>No</Strikeout>
  108.     </font>
  109.     <font>
  110.       <Title>Numbers</Title>
  111.       <Name>Courier New</Name>
  112.       <ColorFont>clRed</ColorFont>
  113.       <ColorBack>clNone</ColorBack>
  114.       <Size>10</Size>
  115.       <Bold>Yes</Bold>
  116.       <Italic>No</Italic>
  117.       <Underline>No</Underline>
  118.       <Strikeout>No</Strikeout>
  119.     </font>
  120.     <font>
  121.       <Title>Comments</Title>
  122.       <Name>Courier New</Name>
  123.       <ColorFont>$0000A9FB</ColorFont>
  124.       <ColorBack>clNone</ColorBack>
  125.       <Size>10</Size>
  126.       <Bold>Yes</Bold>
  127.       <Italic>No</Italic>
  128.       <Underline>No</Underline>
  129.       <Strikeout>No</Strikeout>
  130.     </font>
  131.     <font>
  132.       <Title>Operators</Title>
  133.       <Name>Courier New</Name>
  134.       <ColorFont>clGreen</ColorFont>
  135.       <ColorBack>clNone</ColorBack>
  136.       <Size>10</Size>
  137.       <Bold>No</Bold>
  138.       <Italic>No</Italic>
  139.       <Underline>No</Underline>
  140.       <Strikeout>No</Strikeout>
  141.     </font>
  142.     <font>
  143.       <Title>String</Title>
  144.       <Name>Courier New</Name>
  145.       <ColorFont>$0000ACD7</ColorFont>
  146.       <ColorBack>clNone</ColorBack>
  147.       <Size>10</Size>
  148.       <Bold>Yes</Bold>
  149.       <Italic>No</Italic>
  150.       <Underline>No</Underline>
  151.       <Strikeout>No</Strikeout>
  152.     </font>
  153.   </Styles>
  154.   <Keywords>
  155.     
  156.     
  157.     
  158.     
  159.     
  160.     
  161.     
  162.     
  163.     <lib>
  164.       <Title>Keywords</Title>
  165.       <Style>1</Style>
  166.       <List>as|auto|base|break|case|catch|const|continue|default|do|else|event|explicit|extern|false|finally|fixed|for|foreach|goto|if|implicit|in|internal|lock|namespace|null|operator|out|override|params|private|protected|public|readonly|ref|return|sealed|stackalloc|static|switch|this|throw|true|try|unsafe|using|virtual|void|while||||||||</List>
  167.     </lib>
  168.     <lib>
  169.       <Title>Types</Title>
  170.       <Style>3</Style>
  171.       <List>bool|byte|char|class|decimal|delegate|double|enum|float|int|interface|long|object|sbyte|short|string|struct|uint|ulong|ushort||||||||</List>
  172.     </lib>
  173.     <lib>
  174.       <Title>Directives</Title>
  175.       <Style>2</Style>
  176.       <List>#elif|#endif|#endregion|#else|#error|#define|#if|#line|#region|#undef|#warning||||||||</List>
  177.     </lib>
  178.     <lib>
  179.       <Title>Operators</Title>
  180.       <Style>6</Style>
  181.       <List><![CDATA[+|-|*|?|=|//|/|%|&|>|<|^|!|:|checked|is|new|sizeof|typeof|unchecked|||||||]]></List>
  182.     </lib>
  183.     <lib>
  184.       <Title>Closers</Title>
  185.       <Style>1</Style>
  186.       <List>{|}||</List>
  187.     </lib>
  188.   </Keywords>
  189.   <Rules>
  190.     
  191.     
  192.     
  193.     
  194.     
  195.     
  196.     
  197.     
  198.     <Rule>
  199.       <Name>String-1</Name>
  200.       <Starter>'</Starter>
  201.       <Ender>'</Ender>
  202.       <Style>7</Style>
  203.       <CloseOnDelimeter>No</CloseOnDelimeter>
  204.       <CloseOnEndLine>No</CloseOnEndLine>
  205.       <Force>Yes</Force>
  206.     </Rule>
  207.     <Rule>
  208.       <Name>String-2</Name>
  209.       <Starter>"</Starter>
  210.       <Ender>"</Ender>
  211.       <Style>7</Style>
  212.       <CloseOnDelimeter>No</CloseOnDelimeter>
  213.       <CloseOnEndLine>No</CloseOnEndLine>
  214.       <Force>Yes</Force>
  215.     </Rule>
  216.     <Rule>
  217.       <Name>Comments-1</Name>
  218.       <Starter>//</Starter>
  219.       <Ender/>
  220.       <Style>5</Style>
  221.       <CloseOnDelimeter>No</CloseOnDelimeter>
  222.       <CloseOnEndLine>Yes</CloseOnEndLine>
  223.       <Force>Yes</Force>
  224.     </Rule>
  225.     <Rule>
  226.       <Name>Comments-2</Name>
  227.       <Starter>/*</Starter>
  228.       <Ender>*/</Ender>
  229.       <Style>5</Style>
  230.       <CloseOnDelimeter>No</CloseOnDelimeter>
  231.       <CloseOnEndLine>No</CloseOnEndLine>
  232.       <Force>Yes</Force>
  233.     </Rule>
  234.   </Rules>
  235.   <Numbers>
  236.     
  237.     
  238.     
  239.     
  240.     
  241.     
  242.     
  243.     
  244.     <Style>4</Style>
  245.   </Numbers>
  246.   <Example>
  247.     
  248.     
  249.     
  250.     
  251.     <i>/* -------------------------------------------</i>
  252.     <i>  C# Source code example</i>
  253.     <i>  ------------------------------------------- */</i>
  254.     <i>protected string GetPathName(string stringPath) </i>
  255.     <i> { </i>
  256.     <i>   int imageIndex = 0; </i>
  257.     <i>   int selectIndex = 0; </i>
  258.     <i>    </i>
  259.     <i>   const int Removable = 2; </i>
  260.     <i>   const int LocalDisk = 3; </i>
  261.     <i>   const int Network = 4; </i>
  262.     <i>   const int CD = 5; </i>
  263.     <i>    </i>
  264.     <i>   this.Name = "MainForm";</i>
  265.     <i>   this.ResumeLayout(false);</i>
  266.     <i/>
  267.     <i>   this.Cursor = Cursors.WaitCursor; </i>
  268.     <i/>
  269.     <i>   //Get Name of folder </i>
  270.     <i>   string[] stringSplit = stringPath.Split('\\'); </i>
  271.     <i>   int _maxIndex = stringSplit.Length; </i>
  272.     <i>   return stringSplit[_maxIndex-1]; </i>
  273.     <i> } </i>
  274.     <i/>
  275.     <i>protected string getFullPath(string stringPath) </i>
  276.     <i> { </i>
  277.     <i>    //Get Full path string </i>
  278.     <i>    stringParse = ""; </i>
  279.     <i>    </i>
  280.     <i>    //remove My Computer from path. </i>
  281.     <i>    stringParse = stringPath.Replace("My Computer\\", ""); </i>
  282.     <i>    return stringParse; </i>
  283.     <i> } </i>
  284.   </Example>
  285. </XML>